package com.googlecode.groovy_toy_orm
/**
 * @author: DavydovMD
 * Date: 11.04.13
 * Time: 14:32
 */
public interface DbSourced<T> {

    def T updateFromDb(T bean)

    def T updateFromDb(T bean, String fieldName)

    def T updateFromDb(T bean, String fieldName, def value)

    def T buildFromDb(def value)

    def T buildFromDb(def value, String fieldName)

    def QueryBuilder queryBuilder()
}